package com.xixiake.application;

import android.app.Application;
import android.content.Context;
import android.util.Log;

import com.xixiake.common.AppSetting;
import com.xixiake.utils.Init;

/**
 * application的基类
 * Created by c-wanghengli on 2017/4/3.
 */
public class BaseApplication extends Application {

    public static final String TAG = "BaseApplication";

    private static Context mContext;

    public static Context getContext(){
        return mContext;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        this.mContext = this;
        if(AppSetting.isLogDebugVersion){
            Log.d(TAG,"BaseApplication OnCreate调用");
        }
        Init.init(mContext);
    }
}
